package com.wj.dubbo.service.task;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.wj.console.rabbit.message.CrawlerSocialFundMessage;
import com.wj.dubbo.service.crawler.service.impl.CrawlSocialService;
@Component("socialTaskService")
public class SocialTaskService extends AbstractTaskService {
	@Autowired
	private CrawlSocialService socialServiceImpl;
	
	@Override
	protected String serviceName() {
		return "爬取社保服务";
	}

	@Override
	public void runTask(CrawlerSocialFundMessage message) throws Exception {
		socialServiceImpl.crawSocialData(message);
	}
	
}
